﻿using UnityEngine;
using System.Collections;

public class gameManager : MonoBehaviour {

	// Use this for initialization

	public GameObject player;
	public GameObject respawn;

	void Start () {

		player = GameObject.FindWithTag ("Player1").gameObject;
		respawn = transform.FindChild ("Respawn").gameObject;
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void morir()
	{
		player.transform.position = respawn.transform.position; 
	}
}
